#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <stdlib.h>

typedef struct CycleListNode
{
	int data;
	struct CycleListNode* next;
} Node;

typedef Node* nptr;

Node* initList();

void insertAtIndex(nptr dummyHead, int index, int val);

void headInsert(nptr dummyHead, int val);

void tailInsert(nptr dummyHead, int val);

void delAtIndex(nptr dummyHead, int index);

void headDel(nptr dummyHead);

void tailDel(nptr dummyHead);

nptr getNodeAtIndex(nptr dummyHead, int index);

void freeMem(nptr dummyHead);

void printList(nptr dummyHead);
